<dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-quartz</artifactId> <version>SWITCHYARD-VERSION</version> </dependency>
The quartz binding in SwitchYard provides support for triggering services with given cron expression.
The quartz binding is built on top of camel-quartz.
This binding have it's own namespace. To use it you must declare namespace with uri urn:switchyard-component-camel-quartz:config:1.0. Your Maven project should also have following dependency:
<dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-quartz</artifactId> <version>SWITCHYARD-VERSION</version> </dependency>
Following options can be apile to <binding.quartz> definition:
name : name of job
cron : execution expression
Here's an example of what a quartz service binding looks like:
<sca:composite name="camel-binding" targetNamespace="urn:switchyard-quickstart:camel-binding:0.1.0"> <sca:service name="GreetingService" promote="GreetingService"> <camel:binding.quartz> <camel:name>GreetingJob</camel:name> <camel:cron>0 0/5 * * * ?</camel:cron> </camel:binding.quartz> </sca:service> </sca:composite>